
interface RouteRaw {
    menuId: string;
    parentId: string;
    enable: boolean;
    name: string;
    sort: number;
    path: string;
    direct: boolean;
    createdAt: string;
}
import {
    AppstoreOutlined,
    ContainerOutlined,
    DesktopOutlined,
    MailOutlined,
    MenuFoldOutlined,
    MenuUnfoldOutlined,
    PieChartOutlined,
    SmileOutlined,
    DownOutlined,
    DownloadOutlined,
    CloseSquareOutlined,
    ExclamationCircleFilled,
    UserOutlined,
    LockOutlined,
    FlagOutlined,
} from '@ant-design/icons';
import React from 'react'

export const routerList: Array<any> = [
    {
        path: '/main/home',
        text: "首页",
        role: 1,
        icon: <AppstoreOutlined />,
        component: '@/pages/Home/Home'
    },
    {
        path: '/main/user',
        text: "用户管理",
        role: 2,
        icon: <UserOutlined />,
        component: '@/components/Layout',
        routes: [
            {
                path: '/main/user/add',
                text: "用户新增",
                role: 2,
                icon: <UserOutlined />,
                component: '@/pages/User/UserAdd',
            },
            {
                path: '/main/user/list',
                text: "用户列表",
                role: 2,
                icon: <UserOutlined />,
                component: '@/pages/User/UserList',
            },
            {
                path: '/main/user/data',
                text: "用户分析",
                role: 4,
                icon: <UserOutlined />,
                component: '@/pages/User/UserData',
            }
        ]
    },
    {
        path: '/main/role',
        text: "权限管理",
        role: 4,
        icon: <LockOutlined />,
        component: '@/components/Layout',
        routes: [
            {
                path: '/main/role/add',
                text: "权限操作",
                role: 4,
                icon: <LockOutlined />,
                component: '@/pages/Role/RoleAdd',
            },
            {
                path: '/main/role/list',
                text: "权限列表",
                role: 4,
                icon: <LockOutlined />,
                component: '@/pages/Role/RoleList',
            },
            {
                path: '/main/role/data',
                text: "权限分析",
                role: 5,
                icon: <LockOutlined />,
                component: '@/pages/Role/RoleData',
            }
        ]
    },
    {
        path: '/main/anno',
        text: "公告管理",
        role: 1,
        icon: <MenuFoldOutlined />,
        component: '@/components/Layout',
        routes: [
            {
                path: '/main/anno/add',
                text: "公告操作",
                role: 2,
                icon: <MenuFoldOutlined />,
                component: '@/pages/Anno/AnnoAdd',
            },
            {
                path: '/main/anno/list',
                text: "公告列表",
                role: 1,
                icon: <MenuFoldOutlined />,
                component: '@/pages/Anno/AnnoList',
            },
        ]
    },
    {
        path: '/main/advise',
        text: "意见管理",
        role: 1,
        icon: <ExclamationCircleFilled />,
        component: '@/components/Layout',
        routes: [
            {
                path: '/main/advise/add',
                text: "意见新增",
                role: 1,
                icon: <ExclamationCircleFilled />,
                component: '@/pages/Advise/AdviseAdd',
            },
            {
                path: '/main/advise/list',
                text: "意见列表",
                role: 1,
                icon: <ExclamationCircleFilled />,
                component: '@/pages/Advise/AdviseList',
            },
            {
                path: '/main/advise/list',
                text: "意见详情",
                role: 1,
                icon: <ExclamationCircleFilled />,
                component: '@/pages/Advise/AdviseDetail',
                noShow: true
            },
        ]
    },
    {
        path: '/main/grade',
        text: "成绩管理",
        role: 1,
        max: 3,
        icon: <MailOutlined />,
        component: '@/components/Layout',
        routes: [
            {
                path: '/main/grade/my',
                text: "我的项目",
                role: 1,
                icon: <MailOutlined />,
                component: '@/pages/Grade/GradeMy',
            },
            {
                path: '/main/grade/add',
                text: "添加项目",
                role: 1,
                icon: <MailOutlined />,
                component: '@/pages/Grade/GradeAdd',
            },
            {
                path: '/main/grade/list',
                text: "成绩列表",
                role: 1,
                icon: <MailOutlined />,
                component: '@/pages/Grade/GradeList',
            },
        ]
    },
    {
        path: '/main/ms',
        text: "面试管理",
        role: 1,
        max: 3,
        icon: <PieChartOutlined />,
        component: '@/components/Layout',
        routes: [
            {
                path: '/main/ms/my',
                text: "我的面试",
                role: 1,
                icon: <PieChartOutlined />,
                component: '@/pages/Ms/MsMy',
                max: 3,
            },
            {
                path: '/main/ms/add',
                text: "面试总结",
                role: 1,
                icon: <PieChartOutlined />,
                component: '@/pages/Ms/MsAdd',
            },
            {
                path: '/main/ms/list',
                text: "面试广场",
                role: 1,
                icon: <PieChartOutlined />,
                component: '@/pages/Ms/MsList',
            },
        ]
    },
    {
        path: '/main/offer',
        text: "就业管理",
        role: 1,
        max: 3,
        icon: <DesktopOutlined />,
        component: '@/components/Layout',
        routes: [
            {
                path: '/main/offer/my',
                text: "我的Offer",
                role: 1,
                icon: <DesktopOutlined />,
                component: '@/pages/Offer/OfferMy',
            },
            {
                path: '/main/offer/add',
                text: "添加Offer",
                role: 1,
                icon: <DesktopOutlined />,
                component: '@/pages/Offer/OfferAdd',
            },
            {
                path: '/main/offer/list',
                text: "就业Offer",
                role: 1,
                icon: <DesktopOutlined />,
                component: '@/pages/Offer/OfferList',
            },
        ]
    },
    {
        path: '/main/edu',
        text: "教务管理",
        role: 4,
        icon: <FlagOutlined />,
        component: '@/components/Layout',
        routes: [
            {
                path: '/main/edu/xueke',
                text: "学科管理",
                role: 4,
                icon: <FlagOutlined />,
                component: '@/pages/Edu/EduXueke',
            },
            {
                path: '/main/edu/banji',
                text: "班级管理",
                role: 4,
                icon: <FlagOutlined />,
                component: '@/pages/Edu/EduBanji',
            },
            {
                path: '/main/edu/data',
                text: "教务数据",   //  
                role: 5,
                icon: <FlagOutlined />,
                component: '@/pages/Edu/EduData',
            },
        ]
    },
    {
        path: '/main/zidian',
        text: "数据字典",
        role: 6,
        icon: <DownloadOutlined />,
        component: '@/pages/Field/Field'
    },
    {
        path: '/main/mine',
        text: "个人中心",
        role: 1,
        icon: <ContainerOutlined />,
        component: '@/pages/Mine/Mine'
    },
]
